#include "GNode.h"
#include "StmtTable.h"
#include <iostream>

GNode* CreateGNode(TNodeType g_type, StmtNum stmt_num){
	GNode* new_gnode = new GNode;
	new_gnode->next_a = NULL;
	new_gnode->next_b = NULL;
	new_gnode->g_type = g_type;
	new_gnode->stmt_num = stmt_num;
	StmtTable::SetStmtGNode(stmt_num,new_gnode);
	return new_gnode;
}